package process0.ast;

import java.util.Vector;

import process0.visitor.Visitor;

public class Action implements Node{
	String id;
	// Map<String, String> states = new HashMap<String, String>();
	Vector<States> states = new Vector<States>();

	public Action(String id) {
		super();
		this.id = id;
	}

	public Vector<States> getStates() {
		return states;
	}

	public void setStates(Vector<States> states) {
		this.states = states;
	}

	public void addStates(States s) {
		s.setActionId(this.getId());
		states.add(s);
	}

	public String getId() {
		return id;
	}

//	public String toActionString() {
//		String out = "";
//		for (States s : states) {
//			out += this.getId() + " = " + s.toStateString() + "\n";
//		}
//		return out;
//	}
	public void accept(Visitor visitor) {
		visitor.visit(this);
	}
	
}